import request from '@/utils/request'

// 查询门窗类型定义列表
export function listTypes(query) {
  return request({
    url: '/material-cutting-plan/types/list',
    method: 'get',
    params: query
  })
}

// 查询门窗类型定义详细
export function getTypes(id) {
  return request({
    url: '/material-cutting-plan/types/' + id,
    method: 'get'
  })
}

// 新增门窗类型定义
export function addTypes(data) {
  return request({
    url: '/material-cutting-plan/types',
    method: 'post',
    data: data
  })
}

// 修改门窗类型定义
export function updateTypes(data) {
  return request({
    url: '/material-cutting-plan/types',
    method: 'put',
    data: data
  })
}

// 删除门窗类型定义
export function delTypes(id) {
  return request({
    url: '/material-cutting-plan/types/' + id,
    method: 'delete'
  })
}
